tstr = input()
if tstr[0:3]  == 'USD':
    R = float(tstr[3:])*6.78
    print("RMB{:.2f}".format(R))
elif tstr[0:3] == 'RMB':
    f = float(tstr[3:])/6.78
    print("USD{:.2f}".format(f))
else:
    print('输入格式错误')